SPK_NAME = adminer
SPK_VERS = 4.7.6
SPK_REV = 3
SPK_ICON = src/adminer.png
DSM_UI_DIR = app

DEPENDS  = cross/$(SPK_NAME)

MAINTAINER = piwi82
DESCRIPTION = Adminer is a full-featured database management tool available for MySQL, PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, Elasticsearch and MongoDB.
DESCRIPTION_FRE = Adminer est un outil de gestion de base de données complet disponible pour MySQL, PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, ElasticSearch et MongoDB.
ADMIN_URL = /adminer/
RELOAD_UI = yes
DISPLAY_NAME = Adminer
CHANGELOG = "1. Update to 4.7.6<br/>2. Add wizard to configure networks for client access \(.htaccess\)<br/>3. Switch to design \'rmsoft_blue\', due design \'nette\' is outdated"

HOMEPAGE = https://www.adminer.org
LICENSE  = Apache License 2.0 or GPL 2

INSTALLER_SCRIPT = src/installer.sh
SSS_SCRIPT = src/dsm-control.sh
WIZARDS_DIR = src/wizard/

INSTALL_DEP_SERVICES = apache-web
START_DEP_SERVICES = apache-web
INSTUNINST_RESTART_SERVICES = apache-web

POST_STRIP_TARGET = adminer_extra_install

# Pure PHP package, make sure ARCH is not defined
override ARCH=


include ../../mk/spksrc.spk.mk

.PHONY: adminer_extra_install
adminer_extra_install:
	install -m 755 -d $(STAGING_DIR)/app
	install -m 644 src/app/config $(STAGING_DIR)/app/config
	install -m 755 -d $(STAGING_DIR)/web
	install -m 644 src/dot-htaccess $(STAGING_DIR)/web/.htaccess
